﻿@{
	// The default theme is 'theme-aware' :). 
	// It is possible that a view in the default theme is used as fallback for when there is no matching view in in the current theme.
	object currentTheme;
	if (ViewContext.RouteData.Values.TryGetValue("theme", out currentTheme) && currentTheme.ToString() != "Default")
	{
		Layout = string.Format("~/CmsContent/Themes/{0}/Views/Shared/_Layout.cshtml", currentTheme); 
	}
	else
	{
		Layout = "Shared/_Layout.cshtml";
	}
}